<?
session_start();

REQUIRE ("../../protect/connect.php");
$query="select perso_loc_x,perso_loc_y FROM sduser_perso WHERE perso_id=$userperso";
$resultat=mysql_query($query);
$tmp=mysql_fetch_array($resultat);

 $terre_x=$tmp[0];
 $terre_y=$tmp[1];



//creation de l'image
$rand=mt_rand(0,10000);
$page.="<center><img name=\"carte\" src=\"carte.php?cadre=$_USER_CADRE&r=$rand&p=$userperso&terre_x=$terre_x&terre_y=$terre_y&$SID\"  border=\"0\" usemap=\"#map\"><center><map name=\"map\">";

   echo $page;

?>
